package com.museum.controller.APi;


import com.alibaba.fastjson.JSONObject;
import com.museum.base.BaseResponse;
import com.museum.entity.DTO.CirculatingCol;
import com.museum.entity.message.Circulating;
import com.museum.entity.message.ExcavationInformation;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.DeleteMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;

/**
 * @description 流传经历管理
 * @author ahm
 * @since 2021/3/8
 */
@Api(tags = "流传经历管理")
public interface CirculatingAPI {
    /**
     * @param
     * @Desciption 提交流传经历
     * @return
     */
    @ApiOperation(value = "提交流传经历")
    @PostMapping("/addCirculating")
    BaseResponse<JSONObject> addCirculating(@RequestBody Circulating circulating, HttpServletRequest request);
    /**
     * @param
     * @Desciption 条件查询流传经历
     * @return
     */
    @ApiOperation(value = "条件查询流传经历")
    @PostMapping("/getAllCirculatingByPage")
    BaseResponse<JSONObject> getAllCirculatingByPage(long current, long limit, @RequestBody CirculatingCol col);
    /**
     * @param
     * @Desciption 删除流传经历
     * @return
     */
    @ApiOperation(value = "删除流传经历")
    @DeleteMapping("/deleteCirculatingById/{id}")
    BaseResponse<JSONObject> deleteCirculatingById(@PathVariable("id") Integer id);



}

